##
## Makefile for galaf in /home/compilation/galaf-lib
## 
## Made by christophe labonnemartinez
## Login   <labonn_c@epitech.net>
## 
## Started on  Fri Mar 23 05:05:07 2012 christophe labonnemartinez
## Last update Sat Aug 11 12:45:18 2012 christophe labonnemartinez
##

NAME		= libmy.a

CC		= clang

SRC		= malloc_2d.c		\
		  my_atoi.c		\
		  my_memset.c		\
		  my_putchar.c		\
		  my_putnbr_base.c	\
		  my_putnbr.c		\
		  my_putstr.c		\
		  my_revstr.c		\
		  my_strcat.c		\
		  my_strcmp.c		\
		  my_strcpy.c		\
		  my_strdup.c		\
		  my_strlcat.c		\
		  my_strlcpy.c		\
		  my_strlen.c		\
		  my_strncat.c		\
		  my_strncmp.c		\
		  my_strncpy.c		\
		  xmalloc.c		\
		  xopen.c		\
		  xread.c		\
		  xwrite.c

OBJ		= $(SRC:.c=.o)

ARRC		= ar rc

RAN		= ranlib

RM		= rm -rf

CFLAGS		= -ansi -pedantic

CFLAGS		+= -W -Wall -Wextra -Wstrict-prototypes

CFLAGS		+= -O3

all:		$(NAME) ranlib

$(NAME):	$(OBJ)
		$(ARRC) $(NAME) $(OBJ)

ranlib:		$(NAME)
		$(RAN) $(NAME)

clean:
		$(RM) $(OBJ)

fclean:		clean
		$(RM) $(NAME)

re:		fclean all